"use strict";

module.exports = app => {
  const { router, controller } = app;
  router.resources("blogs", "/api/blogs", controller.blog);
  router.post("/api/blogIndex", controller.blog.indexPage);
  router.patch(
    "/api/blog-category/setCategory",
    controller.blogCategory.setCategory
  );
  router.post("/api/blog-tag/setTags", controller.blogTag.setTags);
  router.get("/api/blog-tag/getTags", controller.blogTag.getTags);
};
